import redis

class Config(object):

    SECRET_KEY = 'FQGC9Kn/eye1W8icdBgrQp+KkGYoFgbVr17bmjey0Wc'

    SQLALCHEMY_DATABASE_URI='mysql://root:mysql@127.0.0.1:3306/kill_me_3000'
    SQLALCHEMY_TRACK_MODIFICATIONS=False

    REDIS_HOST='127.0.0.1'
    REDIS_PORT=6379

    SESSION_TYPE = 'redis'
    SESSION_USE_SIGNER = True
    SESSION_REDIS = redis.StrictRedis(host=REDIS_HOST,port=REDIS_PORT,db=1)
    PERMANENT_SESSION = 86400

# 开发
class DevelopementConfig(Config):
    DEBUG = True

# 生产
class ProductionConfig(Config):
    DEBUG = False

config = {
    'developementConfig':DevelopementConfig,
    'ProductionConfig':ProductionConfig
}

